package com.hornsun.domain.dbo;

public class Coupon {
    private String couponGuid;

    private Float denomination;

    private Byte type;

    private String description;

    private Integer validity;

    private Integer exchange;

    public String getCouponGuid() {
        return couponGuid;
    }

    public void setCouponGuid(String couponGuid) {
        this.couponGuid = couponGuid == null ? null : couponGuid.trim();
    }

    public Float getDenomination() {
        return denomination;
    }

    public void setDenomination(Float denomination) {
        this.denomination = denomination;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getValidity() {
        return validity;
    }

    public void setValidity(Integer validity) {
        this.validity = validity;
    }

    public Integer getExchange() {
        return exchange;
    }

    public void setExchange(Integer exchange) {
        this.exchange = exchange;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", couponGuid=").append(couponGuid);
        sb.append(", denomination=").append(denomination);
        sb.append(", type=").append(type);
        sb.append(", description=").append(description);
        sb.append(", validity=").append(validity);
        sb.append(", exchange=").append(exchange);
        sb.append("]");
        return sb.toString();
    }
}